package cn.wolfcode.wolf2w.service;

import cn.wolfcode.wolf2w.domain.TravelComment;
import cn.wolfcode.wolf2w.domain.UserInfo;

import java.util.List;

public interface ITravelCommentService {
    /**
     * 添加
     * @param travelComment
     * @return
     */
    void save(TravelComment travelComment);

    /**
     * 更新
     * @param travelComment
     * @return
     */
    void update(TravelComment travelComment);

    /**
     * 查单个
     * @param id
     * @return
     */
    TravelComment get(String id);

    /**
     * 查多个
     * @return
     */
    List<TravelComment> list();


    /**
     * 添加与更新
     * @param TravelComment
     */
//    void saveOrUpdate(TravelComment TravelComment);

    /**
     * 删除
     * @param id
     */
    void delete(String id);

    void commentAdd(TravelComment comment, UserInfo userInfo);

    List<TravelComment> queryTravel(String travelId);

}
